import request from '@/utils/request'
// 专家建议搜索
export const getExpertSuggestListByPage = (data) => request.post('/exSu/getExpertSuggestListByPage', data)
// 新增建议
export const saveExpertSuggest = (data) => request.post('/exSu/saveExpertSuggest', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

// 专家建议删除
export const deleteExpertSuggest = (data) => request.post('/exSu/deleteExpertSuggest', data)

// 下载文件
export const downloadSuggest = (data) => request.post('/exSu/downloadSuggest', data, {
    responseType: 'arraybuffer'
})

// 修改建议
export const updateExpertSuggest = (data) => request.post('/exSu/updateExpertSuggest', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

// 专家档案
export const getExpertArchiveListByPage = (data) => request.post('/exAr/getExpertArchiveListByPage', data)

// 专家档案添加
export const saveExpertArchive = (data) => request.post('/exAr/saveExpertArchive', data)

// 专家档案修改
export const updateExpertArchive = (data) => request.post('/exAr/updateExpertArchive', data)

// 专家档案删除
export const deleteExpertArchive = (data) => request.post('/exAr/deleteExpertArchive', data)

// 问题反馈
export const getQuestionListByPage = (data) => request.post('/question/getQuestionListByPage', data)

// 问题反馈新增
export const saveQuestion = (data) => request.post('/question/saveQuestion', data)


// 问题反馈修改
export const updateQuestion = (data) => request.post('/question/updateQuestion', data)

// 问题反馈修改
export const deleteQuestion = (data) => request.post('/question/deleteQuestion', data)

// 问题回复
export const answerQuestion = (data) => request.post('/question/answerQuestion', data)
